package com.mtsmda.chapter1;

import java.util.Arrays;

public class ConstructorsClass {

	private String name;
	private int[] numbers;

	public ConstructorsClass() {

	}

	public ConstructorsClass(String name) {
		this.name = name;
	}
	
	public ConstructorsClass(int ...is){
		if(is.length != 0){
			numbers = new int[is.length];
			for(int i = 0; i < is.length; i++){
				numbers[i] = is[i];
			}
		}
	}

	@Override
	public String toString() {
		return "ConstructorsClass [name=" + name + ", numbers="
				+ Arrays.toString(numbers) + "]";
	}
	

}